
from autoTest_brtcApi.core.rest_client import RestClient

# ####构造接口的请求方式和接口的地址
class UserApiUtils(RestClient):

    def reg_utils(self,headers,**kwargs):

        res = self.excute_request("POST","/register",headers,**kwargs)
        return res

    def login_utils(self,headers,**kwargs):

        res_login = self.excute_request("POST","/login",headers,**kwargs)
        return res_login

    def modifyUserNick(self,headers,**kwargs):
        res_UserNick = self.excute_request("PUT","/modifyUserNick",headers,**kwargs)
        return res_UserNick

# 实例化UserApiUtils()
userApiUtils = UserApiUtils()

